package com.neuedu.studentmanage.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Position {

	private Integer goId;
	private Student student;
	private String place;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date outTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date goTime;

	public Integer getGoId() {
		return goId;
	}

	public void setGoId(Integer goId) {
		this.goId = goId;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public Date getOutTime() {
		return outTime;
	}

	public void setOutTime(Date outTime) {
		this.outTime = outTime;
	}

	public Date getGoTime() {
		return goTime;
	}

	public void setGoTime(Date goTime) {
		this.goTime = goTime;
	}

	public Position() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Position(Integer goId, Student student, String place, Date outTime, Date goTime) {
		super();
		this.goId = goId;
		this.student = student;
		this.place = place;
		this.outTime = outTime;
		this.goTime = goTime;
	}

	@Override
	public String toString() {
		return "Position [goId=" + goId + ", student=" + student + ", place=" + place + ", outTime=" + outTime
				+ ", goTime=" + goTime + "]";
	}

}
